#计算每个班级的总成绩
Sumscore = 0
score = [[99,89,79,69],[98,88,78,68,58],[97,87,77]]
for i in range(0,len(score)):
    Sumscore = 0
    for j in range(0,len(score[i])):
        Sumscore += score[i][j]
    print("%d班的总成绩为%d"%(i+1,Sumscore))